{% extends "park/base.html" %}

{% block css %}
{% endblock %}

{% block content %}
<script type="text/javascript">
    var primary_menu = "menu_4";
    var sub_menu = "menu_4_1";
</script>
            <div class="col-md-12">
            <h3 class="company-name">{{basic.enterprise.name}}</h3>
                <div class="panel panel-primary">
                    <div class="panel-heading">
                        <div class="panel-title"><h3>重点环境管理危险化学品及其特征化学污染物释放与转移情况</h3></div>
                        <div class="panel-options">
                            <a href="#" data-rel="collapse"><i class="entypo-down-open"></i></a>
                            <!--<a href="#" data-rel="reload"><i class="entypo-arrows-ccw"></i></a>-->
                        </div>
                        <div class="stay_right">
                        </div>
                    </div>
                    <div class="panel-body with-table">

                    <form>
                        <table class="input_in table-detail">
                            <tr>
                                <th colspan="4" style="text-align:left;">第一部分重点环境管理危险化学品及其特征化学污染物释放与转移信息</th>
                            </tr>
                            <tr>
                                <th width="350">重点环境管理危险化学品品名或其特征化学污染物名称</th>
                                <td width="350">{{basic.key_environmental_name}}</td>
                                <th>属于</th>
                                {%if basic.key_environmental_kind == 1 %}
                                <td>重点环境管理危险化学品</td>
                                {%else%}
                                <td>特征化学污染物</td>
                                {% endif %}
                            </tr>
                        </table>
                    </form>
                    </div>
                </div>
                <div class="panel panel-primary">
                    <div class="panel-heading">
                        <div class="panel-title"><h3>（一）释放情况</h3></div>
                        <div class="panel-options">
                            <a href="#" data-rel="collapse"><i class="entypo-down-open"></i></a>
                            <!--<a href="#" data-rel="reload"><i class="entypo-arrows-ccw"></i></a>-->
                        </div>
                       <!--  <div class="stay_right">
                            <a href="/pollution/release_transfer/transferEdit?id={{basic.id}}" class="btn btn-info">修改</a>
                        </div> -->
                    </div>
                    <div class="panel-body with-table">

                        <form>
                            <table class="input_in table-detail">
                                <tr style="border-top:1px solid #e5e5e5;">
                                    <th colspan=9>释放途径</th>
                                    <th colspan=3>释放量（千克/年）</th>
                                    <th colspan=3>释放浓度（毫克/升）</th>
                                    <th colspan=5>核算方法代码</th>
                                </tr>
                                <tr>
                                    <th colspan=2 rowspan=3>释放至大气</th>
                                    <td colspan=7>有组织排放&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                    	{% if basic.organized_discharge %}
                                    		√
                                    	{% endif %}
                                    </td>
                                    <td colspan=3>{{basic.organized_discharge_release_quantity}}</td>
                                    <td colspan=3>{{basic.organized_discharge_concentration_release}}</td>
                                    <td colspan=2>{{basic.organized_discharge_method_code0}}</td>
                                    <td>{{basic.organized_discharge_method_code1}}</td>
                                    <td>{{basic.organized_discharge_method_code2}}</td>
                                    <td>{{basic.organized_discharge_method_code3}}</td>
                                </tr>
                                <tr>
                                    <td colspan=7>无组织排放&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                    	{% if basic.fugitive_emissions %}
                                    		√
                                    	{% endif %}
                                    </td>
                                    <td colspan=3>{{basic.fugitive_emissions_release_quantity}}</td>
                                    <td colspan=3>{{basic.fugitive_emissions_concentration_release}}</td>
                                    <td colspan=2>{{basic.fugitive_emissions_method_code0}}</td>
                                    <td>{{basic.fugitive_emissions_method_code1}}</td>
                                    <td>{{basic.fugitive_emissions_method_code2}}</td>
                                    <td>{{basic.fugitive_emissions_method_code3}}</td>
                                </tr>
                                <tr>
                                    <td colspan=7>小计</td>
                                    <td colspan=3>{{basic.subtotal_release_atmosphere}}</td>
                                    <td colspan=3 style="text-align:center;">----</td>
                                    <td colspan=5 style="text-align:center;">----</td>
                                </tr>
                                <tr>
                                    <th colspan=2 rowspan=2>释放至水体</th>
                                    <td colspan=2>受纳水体名称</td>
                                    <td colspan=5>{{basic.receiving_water_name}}</td>
                                    <td colspan=3 rowspan=2>{{basic.receiving_water_release_quantity}}</td>
                                    <td colspan=3 rowspan=2>{{basic.receiving_water_concentration_release}}</td>
                                    <td colspan=2 rowspan=2>{{basic.receiving_water_method_code0}}</td>
                                    <td rowspan=2>{{basic.receiving_water_method_code1}}</td>
                                    <td rowspan=2>{{basic.receiving_water_method_code2}}</td>
                                    <td rowspan=2>{{basic.receiving_water_method_code3}}</td>
                                </tr>
                                <tr>
                                    <td colspan=2>受纳水体代码：</td>
                                    <td colspan=5>{{basic.receiving_water_code}}</td>
                                </tr>
                                <tr>
                                    <th colspan=2 rowspan=3>释放至土壤</th>
                                    <td colspan=7>自行填埋&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                    	{% if basic.release_soil_to_landfill %}
                                    		√
                                    	{% endif %}
                                    </td>
                                    <td colspan=3>{{basic.release_soil_to_landfill_release_quantity}}</td>
                                    <td colspan=3>{{basic.release_soil_to_landfill_concentration_release}}</td>
                                    <td colspan=2>{{basic.release_soil_to_landfill_method_code0}}</td>
                                    <td>{{basic.release_soil_to_landfill_method_code1}}</td>
                                    <td>{{basic.release_soil_to_landfill_method_code2}}</td>
                                    <td>{{basic.release_soil_to_landfill_method_code3}}</td>
                                </tr>
                                <tr>
                                    <td colspan=7>其它&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                    	{% if basic.release_soil_to_other %}
                                    		√
                                    	{% endif %}
                                    </td>
                                    <td colspan=3>{{basic.release_soil_to_other_release_quantity}}</td>
                                    <td colspan=3>{{basic.release_soil_to_other_concentration_release}}</td>
                                    <td colspan=2>{{basic.release_soil_to_other_method_code0}}</td>
                                    <td>{{basic.release_soil_to_other_method_code1}}</td>
                                    <td>{{basic.release_soil_to_other_method_code2}}</td>
                                    <td>{{basic.release_soil_to_other_method_code3}}</td>
                                </tr>
                                <tr>
                                    <td colspan=7>小计</td>
                                    <td colspan=3>{{basic.subtotal_release_soil}}</td>
                                    <td colspan=3 style="text-align:center;">----</td>
                                    <td colspan=5 style="text-align:center;">----</td>
                                </tr>
                                <tr>
                                    <th colspan=9>合计</th>
                                    <td colspan=3>{{basic.subtotal_release}}</td>
                                    <td colspan=3 style="text-align:center;">----</td>
                                    <td colspan=5 style="text-align:center;">----</td>
                                </tr>
                            </table>
                        </form>
                    </div>
                </div>
                <div class="panel panel-primary">
                    <div class="panel-heading">
                        <div class="panel-title"><h3>（二）转移情况</h3></div>
                        <div class="panel-options">
                            <a href="#" data-rel="collapse"><i class="entypo-down-open"></i></a>
                            <!--<a href="#" data-rel="reload"><i class="entypo-arrows-ccw"></i></a>-->
                        </div>
                        <!-- <div class="stay_right">
                            <a href="/pollution/release_transfer/transferEdit?id={{basic.id}}" class="btn btn-info">修改</a>
                        </div> -->
                    </div>
                    <div class="panel-body with-table">
                        <table class="input_in table-detail">
                            <tr>
                                <th colspan="9">转移至污水处理厂</th>
                            </tr>
                            <tr>
                                <th width="50">序号</th>
                                <th>转移量（千克/年）</th>
                                <th colspan="4">核算方法代码</th>
                                <th>污水处理厂名称</th>
                                <th>污水处理厂地址</th>
                            </tr>
                            <tr class="rowT">
                                <td>1</td>
                                <td>{{basic.sewage_treatment_plant_quantity}}</td>
                                <td>{{basic.sewage_treatment_plant_method_code0}}</td>
                                <td>{{basic.sewage_treatment_plant_method_code1}}</td>
                                <td>{{basic.sewage_treatment_plant_method_code2}}</td>
                                <td>{{basic.sewage_treatment_plant_method_code3}}</td>
                                <td>{{basic.sewage_treatment_plant_name}}</td>
                                <td>{{basic.sewage_treatment_plant_address}}</td>
                            </tr>
                            <tr>
                                <th width="50">小计</th>
                                <th colspan="7">{{basic.metastasis_subtotal_release}}</th>
                            </tr>
                        </table>
                        <br>
                        <table class="input_in table-detail">
                            <tr>
                                <th colspan="11">转移至固体废物处置单位</th>
                            </tr>
                            <tr>
                                <th width="50">序号</th>
                                <th>固体废物名称</th>
                                <th>固体废物形态</th>
                                <th>转移量（千克/年）</th>
                                <th colspan="4">核算方法代码</th>
                                <th>处置单位名称</th>
                                <th>危险废物经营许可证编号</th>
                            </tr>
                            {% for key in solidList%}
                            <tr class="rowT">
                                <td>{{forloop.counter}}</td>
                                <td>{{key.name_solid_waste}}</td>
                                <td>
                                	{%if key.solid_waste_form == 1 %}
                                		固态
                                	{%endif%}
                                	{%if key.solid_waste_form == 2 %}
                                		半固态
                                	{%endif%}
                                	{%if key.solid_waste_form == 3 %}
                                		其他
                                	{%endif%}
                                </td>
                                <td>{{key.name_solid_waste_quantity}}</td>
                                <td>{{key.name_solid_waste_method_code0}}</td>
                                <td>{{key.name_solid_waste_method_code1}}</td>
                                <td>{{key.name_solid_waste_method_code2}}</td>
                                <td>{{key.name_solid_waste_method_code3}}</td>
                                <td>{{key.disposal_unit_name1}}</td>
                                <td>{{key.waste_operation_number}}</td>
                            </tr>
                            {%endfor%}
                            <tr>
                                <th width="50">小计</th>
                                <th colspan="9">{{basic.metastasis_release_soil}}</th>
                            </tr>
                        </table>
                    </div>
                </div>
            </div>

{% endblock %}

{% block js %}

{% endblock %}